package com.tai.design.observer;

/**
 * The type Wei xin user.
 *
 * @version v1.0
 * @ClassName: WeiXinUser
 * @Description: 具体的观察者角色类
 * @Author: taylor
 */
public class WeiXinUser implements Observer {

    private String name;

    /**
     * Instantiates a new Wei xin user.
     *
     * @param name the name
     */
    public WeiXinUser(String name) {
        this.name = name;
    }

    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
